package com.atguigu.eduorder.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConstantWxPay implements InitializingBean {
    @Value("${wx_pay_appid}")
    private String appid;

    @Value("${wx_pay_partner}")
    private String partner;

    @Value("${wx_pay_partnerkey}")
    private String partnerkey;

    @Value("${wx_pay_notifyurl}")
    private String notifyurl;

    public static String APPID;
    public static String PARTNER;
    public static String PARTNERKEY;
    public static String NOTIFYURL;
    @Override
    public void afterPropertiesSet() throws Exception {
        APPID=appid;
        PARTNER=partner;
        PARTNERKEY=partnerkey;
        NOTIFYURL=notifyurl;
    }
}
